<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>

<div id="content-outer">

	<!-- start content -->
	<div id="content">

		<div id="page-heading">
			<c:if test="${empty machine }">
				<h1>Virtual machine run successfully !</h1>
			</c:if>

			<c:if test="${not empty machine}">
				<h1>Create Successfully</h1>
			</c:if>
		</div>
		<c:if test="${not empty machine}">
			<table border="0" width="100%" cellpadding="0" cellspacing="0"
				id="content-table">
				<tr>
					<th rowspan="3" class="sized"><img
						src="<c:url value="/resources/images/shared/side_shadowleft.jpg"/>"
						width="20" height="300" alt="" /></th>
					<th class="topleft"></th>

					<td id="tbl-border-top">&nbsp;</td>
					<th class="topright"></th>
					<th rowspan="3" class="sized"><img
						src="<c:url value="/resources/images/shared/side_shadowright.jpg"/>"
						width="20" height="300" alt="" /></th>
				</tr>
				<tr>
					<td id="tbl-border-left"></td>
					<td>
						<!--  start content-table-inner -->
						<div id="content-table-inner">
							<c:if test="${not empty machine}">

								<table border="0" cellpadding="0" cellspacing="0" id="id-form">
									<tr>
										<th valign="top" style="font-size: 15px">CPU:</th>
										<td style="font-size: 15px"><c:out value="${machine.cpu}" /></td>
									</tr>
									<tr>
										<th valign="top" style="font-size: 15px">RAM:</th>
										<td style="font-size: 15px"><c:out value="${machine.ram}" /></td>
									</tr>
									<tr>
										<th valign="top" style="font-size: 15px">HDD:</th>
										<td style="font-size: 15px"><c:out value="${machine.hdd}" /></td>
									</tr>
								</table>

							</c:if>

							<form:form action="runVM" method="post">
								<input type="submit" value="Run it" id="form-run-it" />
							</form:form>
						</div> <!--  end content-table-inner  -->
					</td>

					<td id="tbl-border-right"></td>
				</tr>
				<tr>
					<th class="sized bottomleft"></th>

					<td id="tbl-border-bottom">&nbsp;</td>
					<th class="sized bottomright"></th>
				</tr>
			</table>
		</c:if>
		<div class="clear">&nbsp;</div>

	</div>
	<!--  end content -->

	<div class="clear">&nbsp;</div>
</div>
